package com.ruoyi.web.controller.biz;

import com.ruoyi.biz.service.StatExportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;

@RestController
@RequestMapping("/biz/stat")
public class StatApiController {

    @Autowired
    private StatExportService statExportService;

    /**
     * 导出风险统计数据
     */
    @PostMapping("/exportRisk")
    public void exportRisk(@RequestParam Integer year, HttpServletResponse response) {
        statExportService.exportRiskWithCompanySheets(year, response);
    }
} 